package com.example.springdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @ClassName World
 * @Description TODO
 * @Author MaChao
 * @Date 2022/2/24 17:35
 * @Version 1.0
 **/
@Controller
public class World {
    @RequestMapping("/world")
    public String world(Map<String,Object> map){
        map.put("name","HelloWorld");
        return "world";
    }
}
